﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace Ixyu.Base.Dictionaries
{
    public class AbpDictionary : FullAuditedEntity
    {
        [DisplayName("键")]
        [StringLength(50)]
        [Required]
        public string Key { get; set; }

        [DisplayName("值")]
        [StringLength(50)]
        public string Value { get; set; }

        [DisplayName("显示颜色")]
        [StringLength(50)]
        public string Color { get; set; }
        [DisplayName("备注")]
        [StringLength(500)]
        public string Note { get; set; }

        /// <summary>
        /// false 可编辑
        /// true 不可编辑，不可增加，不可删除，不可操作
        /// </summary>
        [DisplayName("静态项")]
        public bool IsStatic { get; set; }

        [DisplayName("父项目")]
        public int? ParentId { get; set; }

        /// <summary>
        /// 0 菜单
        /// 1 字典
        /// 2 字典项
        /// </summary>
        [DisplayName("分类")]
        public int Type { get; set; }

        [DisplayName("配置Id")]
        public int? ConfigId { get; set; }

        [DisplayName("排序")]
        public int DisplayOrder { get; set; }
        [DisplayName("状态")]
        public bool Status { get; set; }

    }
}
